public class RecursionNum {
    public static void disassemble(int n){
        if(n <= 9){
            System.out.print(n + " ");
            return;
        }
        disassemble(n/10);
        System.out.print(n % 10 + " ");
    }
    public static void main(String[] args) {
        int n = 1234;
        disassemble(n);
    }
}
